package com.baor.controller;

import com.baor.service.RemovalService;
import com.baor.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/removal")
/**
 * 清运记录表
 */
public class RemovalController {
    @Autowired
    private RemovalService removalService;

    @RequestMapping("/getList")
    public R getList(@RequestBody Map<String,Object> params){
        R r= this.removalService.getList( params);
        return R.ok(r);
    }
    @RequestMapping("/getCleaner")
    public R returnList(@RequestBody Map<String,Object> params){
        R r= this.removalService.getCleaner(params);
        return R.ok(r);
    }
}
